package com.jt.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//1.标识配置类 配置类一般与@Bean注解联用
@Configuration
public class MyBatisPlusConfig {

	//需要将对象交给容器管理 Map集合 map<paginationInterceptor 方法名, 实例化之后的对象>
	@Bean
	public PaginationInterceptor paginationInterceptor() {

		return new PaginationInterceptor();
	}
}
